package chapter05;

public class java03_Object {
    public static void main(String[] args) {
        // TODO 常见类和对象
        // 数组
        int[] nums = new int[3];
        String[] names = {"zhangsan","lisi","wangwu"};
        for (int i = 0; i < names.length; i++) {
            System.out.println(names[i]);
        }
        // name只是个代指，你也可以取名为a，它用来取数组中的每一个元素
        for (String name : names) {
            System.out.println(name);
        }

        // 二维数组
        String[][] namess = new String[3][3]; //左【】三行；右【】三列
    }
}
